home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00a.txt / 000023_icon-group-sender _Fri Feb 4 13:29:57 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA05808
  4.     for icon-group-addresses; Fri, 4 Feb 2000 13:26:13 -0700 (MST)
  5. Message-Id: <200002042026.NAA05808@baskerville.CS.Arizona.EDU>
  6. Date: Thu, 3 Feb 2000 18:34:08 -0700 (MST)
  7. From: Gregg Townsend <gmt@baskerville.CS.Arizona.EDU>
  8. To: icon-group@optima.CS.Arizona.EDU, oikonomou@att.com
  9. Subject: Re: calling a C routine from icont
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12.  
  13.     From: Kostas Oikonomou <oikonomou@att.com>
  14.     Date: Thu,  3 Feb 2000 15:00:09 -0500 (EST)
  15.     
  16.     Is it possible to call a C routine for which you have only a header
  17.     available, and whose code exists only in a library (no source available)?
  18.  
  19. No.  Icon can't call arbitrary C functions -- only functions written
  20. specifically for use with Icon.  The C function is always passed an
  21. argc / argv pair, and the argv array contains Icon "descriptors".
  22. Details are given in Section 3 of 
  23.     http://www.cs.arizona.edu/icon/docs/ipd240.htm
  24.  
  25. You can, however, write interface routines that accept Icon calls
  26. and in turn call the specialized library.
  27.  
  28.    ---------------------------------------------------------------------------
  29.    Gregg Townsend         Staff Scientist      The University of Arizona
  30.    gmt@cs.arizona.edu     Computer Science     Tucson, Arizona, USA
  31.